import request from '@/utils/request'

// 查询影片地区列表
export function listMoviearea(query) {
  return request({
    url: '/cinema/cinema/moviearea/list',
    method: 'get',
    params: query
  })
}

// 查询影片地区详细
export function getMoviearea(areaId) {
  return request({
    url: '/cinema/cinema/moviearea/' + areaId,
    method: 'get'
  })
}

// 新增影片地区
export function addMoviearea(data) {
  return request({
    url: '/cinema/cinema/moviearea',
    method: 'post',
    data: data
  })
}

// 修改影片地区
export function updateMoviearea(data) {
  return request({
    url: '/cinema/cinema/moviearea',
    method: 'put',
    data: data
  })
}

// 删除影片地区
export function delMoviearea(areaId) {
  return request({
    url: '/cinema/cinema/moviearea/' + areaId,
    method: 'delete'
  })
}

// 导出影片地区
export function exportMoviearea(query) {
  return request({
    url: '/cinema/cinema/moviearea/export',
    method: 'get',
    params: query
  })
}